package com.zj.jdbc1Tools;

import com.zj.bean.UserInfo;
import java.sql.SQLException;
import java.util.List;

/**
 * Hello world!
 *
 */
public class AppTest
{
    public static void main( String[] args ) throws SQLException {

        UserDaoImpl userDao=SingletonEnum.INSTANCE.getInstnce();
//        UserInfo userInfo = userDao.find(38);
//        System.out.println(userInfo);

        List<UserInfo> all = userDao.getAll();
        for (UserInfo user:all) {
            System.out.println(user);
        }
    }
}
